import request from '@/LC/request';
// import $platform from '@/LC/platform';

export default {
	mobilelogin: (data) =>
		request({
			url: '/api/user/mobilelogin',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: false

			},
		}),
	login: (data) =>
		request({
			url: '/api/user/login',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: false

			},
		}),
		openid: (data) =>
			request({
				url: '/api/recharge/openiduser',
				method: 'POST',
				data,
				custom: {
					showLoading: true,
					auth: false
		
				},
			}),
			wechatpay: (data) =>
				request({
					url: '/api/recharge/wechatpay',
					method: 'POST',
					data,
					custom: {
						showLoading: true,
						auth: true
			
					},
				}),
		
	mobilelogin: (data) =>
		request({
			url: '/api/user/mobilelogin',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: false

			},
		}),
	register: (data) =>
		request({
			url: '/api/user/register',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: false

			},
		}),
	sharelog: (data) =>
		request({
			url: '/api/user/sharelog',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: false
	
			},
		}),	
		commissionlog: (data) =>
			request({
				url: '/api/user/commissionlog',
				method: 'GET',
				data,
				custom: {
					showLoading: true,
					auth: true
		
				},
			}),	
	logout: (data) =>
		request({
			url: '/api/user/logout',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: false

			},
		}),
	smssend: (data) =>
		request({
			url: '/api/sms/send',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: false
	
			},
		}),	
	info: (data) =>
		request({
			url: '/api/user/info',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true

			},
		}),
	mycollect: (data) =>
		request({
			url: '/api/user/mycollect',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),
	complaint: (data) =>
		request({
			url: '/api/user/complaint',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	scoredhconfig: (data) =>
		request({
			url: '/api/user/scoredhconfig',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),		
	scoremoney: (data) =>
		request({
			url: '/api/user/scoremoney',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),		
	lecturerapply: (data) =>
		request({
			url: '/api/lecturer/lecturerapply',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	profile: (data) =>
		request({
			url: '/api/user/profile',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	moneylog: (data) =>
		request({
			url: '/api/user/moneylog',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	signin: (data) =>
		request({
			url: '/api/user/signin',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	articleadd: (data) =>
		request({
			url: '/api/lecturer/articleadd',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),
	articleedit: (data) =>
		request({
			url: '/api/lecturer/articleedit',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	articleshow: (data) =>
		request({
			url: '/api/lecturer/articleshow',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	articledel: (data) =>
		request({
			url: '/api/lecturer/articledel',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),
	articlepublish: (data) =>
		request({
			url: '/api/lecturer/articlepublish',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),				
	articlelist: (data) =>
		request({
			url: '/api/lecturer/articlelist',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	rechargeconfig: (data) =>
		request({
			url: '/api/recharge/rechargeconfig',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	scorelog: (data) =>
		request({
			url: '/api/user/scorelog',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),
	signininfo: (data) =>
		request({
			url: '/api/user/signininfo',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),	
	sharephb: (data) =>
		request({
			url: '/api/user/sharephb',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true
	
			},
		}),									

};